import actions from './actions'
import mutations from './mutations'

export default {
  namespaced: true,
  state: () => ({
    // 列表数据
    tableData: [],
    searchState: false,
    pg: "page",
    currentPage: 1, //当前页
    pageSize: 3, //页数
    totalSize: 0,   // 总共有多少条数据
    // 表头数据
    linklist: [
      {
        id: 0,
        name: "审核",
        isRouter: false,
        width: 70
      },
      {
        id: 1,
        name: "客户名称",
        isRouter: true,
        url: "",
        width: 120
      },
      {
        id: 2,
        name: "关联",
        isRouter: true,
        url: "",
        width: 150
      },
      {
        id: 3,
        name: "联系人",
        isRouter: false,
        width: 100
      },
      {
        id: 4,
        name: "收入_支出",
        isRouter: false,
        width: 90
      },
      {
        id: 5,
        name: "收支类别",
        isRouter: false,
        width: 100
      },
      {
        id: 6,
        name: "收支金额",
        isRouter: false,
        width: 90
      },
      {
        id: 7,
        name: "备注",
        isRouter: false,
        width: 120
      },
      {
        id: 8,
        name: "收支日期",
        isRouter: false,
        width: 110
      },
      {
        id: 9,
        name: "业务员",
        isRouter: false,
        width: 100
      },
      {
        id: 10,
        name: "录入时间",
        isRouter: false,
        width: 110
      },
      {
        id: 11,
        name: "附件",
        isRouter: true,
        url: "",
        width: 70
      },
    ],
    // 操作按钮
    btnList: [
      {
        id: "1",
        name: "修改",
        type: "财务"
      },
      {
        id: "2",
        name: "删除",
        type: "财务"
      },
      {
        id: "3",
        name: "修改审核状态",
        type: "财务"
      }
    ],
    selWidth: {
      tools: 56,
    },
    // 字段名称
    titleList: [
      "check",
      "customername",
      "contact",
      "contactperson",
      "inoutcome",
      "inoutcategory",
      "inoutmoney",
      "remarks",
      "inouttime",
      "salesman",
      "inputtime",
      "accessory",
    ],
    // // 每页总数
    // limit: 3,
    // // 当前页数
    // page: 1
  }),
  getters: {},
  mutations,
  actions
}